#pragma once


#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>

#define ROW 9
#define COL 9
#define MINECOUNT 10

#define ROWS ROW+2
#define COLS COL+2

void menu();

void game();

void init_board(char board[ROWS][COLS], int rows, int cols, char set);

void setMine(char board[ROWS][COLS], int row, int col);

void DisplayBoard(char board[ROWS][COLS], int row, int col);

int FindMine(char mine[ROWS][COLS], char show[ROWS][COLS], int* count);

int GetAroundCount(char mine[ROWS][COLS], int x, int y);

void PlayerStep(char mine[ROWS][COLS], char show[ROWS][COLS], int *markNum, int* count);

int MarkMine(char mine[ROWS][COLS], char show[ROWS][COLS], int* markNum);

bool compareMarket(char mine[ROWS][COLS], char show[ROWS][COLS]);